//
//  ConfirmOrderModel.m
//  MobileShoppingMall
//
//  Created by 冯传昌 on 2021/4/30.
//  Copyright © 2021 冯传昌. All rights reserved.
//

#import "ConfirmOrderModel.h"

#import "OrdersModel.h"

@implementation ConfirmOrderModel

+(ConfirmOrderModel *)paraWithDict:(NSDictionary *)dict{
    ConfirmOrderModel *model;
    model = [ConfirmOrderModel yy_modelWithDictionary:dict];
    
    model.leaveMessage = @"";
    NSArray *arr = model.products;
    
    NSMutableArray *arr1 = [NSMutableArray array];
    for (NSDictionary *dic in arr) {
        OrdersModel *orderM = [OrdersModel paraWithDict:dic];
        [arr1 addObject:orderM];
    }
    model.products = (NSArray *)arr1;
    
    model.cellHeight = 112 + model.products.count*110;
    return model;
}


@end
